package com.lavender.account.service.mapper;

import com.lavender.account.service.entity.Account;
import org.apache.ibatis.annotations.Param;

/**
 * @author: zhu.chen
 * @date: 2020/11/24
 * @version: v1.0.0
 */
public interface AccountMapper {

    /**
     * <p>
     * 根据userID查询Account
     * </p>
     *
     * @param userId
     * @return Account
     */
    Account selectByUserId(@Param("userId") String userId);

    /**
     * <p>
     * 根据用户id更新数据
     * </p>
     *
     * @param record
     * @return int
     */
    int updateById(Account record);

    /**
     * <p>
     *  根据account插入数据
     * </p>
     *
     * @param account
     * @return int
     */
    int insertUser(Account account);

}